package com.example.springbootrbac.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.springbootrbac.pojo.DbaKey;

import javax.persistence.Id;
import javax.persistence.IdClass;

import lombok.Data;

@Data
@TableName("`user_role`")
public class DbaEntity {
    @TableId(value="user_id")
    private long user;
     @TableField("role_id")
    private long role;
}
